<%@page import="entity.user"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>User Infomation</h1>
        <%
            user u = (user)request.getAttribute("user");
        %>
        <table border="1">
            <tr>
                <td>USername:</td>
                <td><%= u.getUsername()%></td>
            </tr>
            <tr>
                <td>Password:</td>
                <td><%= u.getPassword()%></td>
            </tr>
            <tr>
                <td>Full name:</td>
                <td><%= u.getFullname()%></td>
            </tr>
            <tr>
                <td>Role:</td>
                <td><%= u.getRole()%></td>
            </tr>
        </table>

    </body>
</html>
